import React, { useEffect, useState, useRef } from 'react';
import { Image, View } from '@tarojs/components'
import Taro from '@tarojs/taro';
export default (props) => {
    const { src } = props
    return <View onClick={() => {
        Taro.previewMedia({
            sources: [{
                url: src
            }]
        })
    }} style={{ background: '#F5F5F5', width: '100%', height: '100%' }}>
        <Image mode='aspectFit' style={{ width: '100%', height: '100%' }} {...props}>

        </Image>
    </View>
};
